﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _3_12学习
{
    class enemy
    {
        protected int mp;
        protected int hp;

        public enemy(int mp,int hp)
        {
            this.mp = mp;
            this.hp = hp;
        }

        public virtual void attact()
        {
            Console.WriteLine("敌人攻击");
        }
        public virtual void print()
        {
            Console.WriteLine("血量：" + mp);
            Console.WriteLine("蓝条：" + hp);

        }

        
    }
}
